phpseclib3\Net\SSH2 D

Total Complexity 743
Dependencies 36
Dependents 2
Total lines 5,497
Lines of code 2,863
Logical lines of code 1,770
Comment lines 1,906
Methods 106
Properties 115

Methods 106

Method Rating Maintainability Complexity Lines of code
key_exchange()
D
4
97 437
get_channel_packet()
D
24
46 164
get_binary_packet()
D
22
42 174
send_binary_packet()
D
28
36 117
sublogin()
D
36 32 78
connect()
C
31 28 107
filter()
C
31 26 106
login_helper()
C
32 25 110
setPreferredAlgorithms()
C
35 25 89
encryption_algorithm_to_key_size()
C
45 27 37
privatekey_login()
B
31 20 112
encryption_algorithm_to_crypt_instance()
B
45 24 39
getServerPublicHostKey()
B
39 19 66
append_log_helper()
B
39 16 64
keyboard_interactive_process()
B
39 16 63
getSupportedEncryptionAlgorithms()
A
40 13 67
exec()
A
40 12 68
get_binary_packet_size()
A
42 13 52
read()
A
46 14 36
mac_algorithm_to_hash_instance()
A
51 14 25
__construct()
A
35 5 91
isConnected()
A
54 9 19
send_channel_packet()
A
48 7 35
generate_identifier()
S
54 7 21
write()
S
56 6 18
login()
S
59 6 14
openShell()
S
47 4 41
format_log()
S
51 5 25
open_channel()
S
53 5 22
get_stream_timeout()
S
56 5 17
getLog()
S
59 5 14
stream_select()
S
57 4 16
ping()
S
59 4 15
close_channel()
S
58 4 15
disconnect_helper()
S
59 4 15
get_binary_packet_or_close()
S
58 4 14
define_array()
S
63 4 11
requestAgentForwarding()
S
56 3 20
reset_connection()
S
55 3 19
bad_algorithm_candidate()
S
66 4 9
send_keep_alive()
S
65 4 8
get_open_channel()
S
64 4 9
ssh_agent_login()
S
62 3 12
startSubsystem()
S
56 2 19
array_intersect_first()
S
67 3 8
getConnectionByResourceId()
S
69 3 6
close_channel_bitmap()
S
66 3 9
reset()
S
68 3 8
get_interactive_channel()
S
66 3 10
updateLogHistory()
S
65 3 9
disconnect()
S
68 3 7
getConnections()
S
64 3 10
getAlgorithmsNegotiated()
S
55 1 22
getSupportedKEXAlgorithms()
S
57 1 19
getServerAlgorithms()
S
57 1 19
getSupportedMACAlgorithms()
S
59 1 17
on_channel_open()
S
74 2 5
disablePTY()
S
71 2 6
getLastError()
S
70 2 6
getSupportedCompressionAlgorithms()
S
67 2 8
reconnect()
S
67 2 8
stopSubsystem()
S
72 2 6
getExitStatus()
S
72 2 6
is_channel_status_data()
S
78 2 3
isInteractiveChannelOpen()
S
79 2 3
append_log()
S
63 1 13
keyboard_interactive_login()
S
62 1 13
getSupportedHostKeyAlgorithms()
S
64 1 12
setWindowSize()
S
77 1 4
getResourceId()
S
79 1 3
__toString()
S
81 1 3
forceMultipleChannels()
S
81 1 3
sendIdentificationStringFirst()
S
81 1 3
disableSmartMFA()
S
81 1 3
enableSmartMFA()
S
81 1 3
getBannerMessage()
S
82 1 3
setWindowRows()
S
81 1 3
setWindowColumns()
S
81 1 3
getWindowRows()
S
82 1 3
setTerminal()
S
81 1 3
sendIdentificationStringLast()
S
81 1 3
getAuthMethodsToContinue()
S
82 1 3
getWindowColumns()
S
82 1 3
getTimeout()
S
82 1 3
sendKEXINITFirst()
S
81 1 3
getInteractiveChannelId()
S
82 1 3
setKeepAlive()
S
81 1 3
getStdError()
S
82 1 3
getOpenChannelCount()
S
82 1 3
isTimeout()
S
82 1 3
__destruct()
S
82 1 3
isAuthenticated()
S
79 1 3
isShellOpen()
S
80 1 3
isPTYOpen()
S
80 1 3
setCryptoEngine()
S
80 1 3
getServerIdentification()
S
77 1 4
handleDisconnect()
S
66 1 7
enableQuietMode()
S
81 1 3
disableQuietMode()
S
81 1 3
isQuietModeEnabled()
S
82 1 3
enablePTY()
S
81 1 3
isPTYEnabled()
S
82 1 3
setTimeout()
S
80 1 3
sendKEXINITLast()
S
81 1 3
getErrors()
S
82 1 3
bytesUntilKeyReexchange()
S
81 1 3